/**
 * @author admin
 * 剑指 Offer11 05. 替换空格
 */
public class Offer05 {

    public String replaceSpace(String s) {
        return s.replace(" ","%20");
    }
    public static void main(String[] args) {
        System.out.println(new Offer05().replaceSpace("We are happy."));
    }
}
